package joshua.web.facade;

import java.util.List;
import java.util.Map;

public abstract class LogicFacade implements ILogicFacade {
	
	public abstract boolean deleteThreadById(int threadId); 
	public abstract boolean addThread(String userName, String detail);
	public abstract List<Map<String, Object>> getAllThread();
	
	
	public void setPersistenceFacade(IPersistenceFacade pf) {
		persistenceFacade = pf;
	}
	
	
	public IPersistenceFacade getPersistenceFacade() {
		return persistenceFacade;
	}
	
	
	public LogicFacade() {
		//TODO:need to inject by spring
		facadeContainer = new FacadeContainerImpl();
	}
	
	protected IFacadeContainer facadeContainer;
	protected IPersistenceFacade persistenceFacade;
}
